package com.sale.goods.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.goods.domain.GoodsCostAdjustment;
import com.sale.goods.domain.dto.GoodsCostAdjustmentDto;
import com.sale.goods.domain.vo.GoodsCostAdjustmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 成本调整mapper
 */
public interface GoodsCostAdjustmentMapper extends BaseMapperPlus<GoodsCostAdjustmentMapper, GoodsCostAdjustment, GoodsCostAdjustment> {

    /**
     * 成本调整分页列表
     */
    Page<GoodsCostAdjustmentDto> getCostAdjustmentList(@Param("goodsCostAdjustmentVo") GoodsCostAdjustmentVo goodsCostAdjustmentVo, @Param("page") Page<GoodsCostAdjustmentDto> page);

    /**
     * 根据id获取成本调整详情
     * @param id
     * @return
     */
    GoodsCostAdjustment selectGoodsCostAdjustment(Long id);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsCostAdjustmentDto> getQClosingDocument(String time);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsCostAdjustmentDto> getRClosingDocument(String time);
}
